package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Contract;
import cn.wolfcode.car.business.query.ContractQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Contract record);

    Contract selectByPrimaryKey(Long id);

    List<Contract> selectAll();

    int updateByPrimaryKey(Contract record);

    List<Contract> selectForList(ContractQuery qo);

    void updateAuditStatus(@Param("id") Long id, @Param("auditstatePass") Integer auditstatePass);

    void updateAffixSealStatus(@Param("id") Long id, @Param("affixsealstateOn") boolean affixsealstateOn);

    void updateNullifyStatus(@Param("id") Long id, @Param("nullifyState") boolean nullifyState);
}